package cn.zzuisa.bluebox.biz.device.service.impl;

import java.util.Map;

import cn.zzuisa.bluebox.biz.device.entity.Device;
import cn.zzuisa.bluebox.biz.device.mapper.DeviceMapper;
import cn.zzuisa.bluebox.biz.device.service.DeviceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Ao
 * @since 2018-11-30
 */
@Service
public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> implements DeviceService {

	@Override
	public IPage<Map<String, Object>> pageDevices(IPage<Device> page, String[] ids) {
		return baseMapper.pageDevices(page,ids);
	}

	@Override
	public Device selectDeviceByImei(String Imei) {
		return baseMapper.findByImei(Imei);
	}


}
